com.highdeal.pnr.hci
Class ChargeActivationModel

java.lang.Object
  extended by com.highdeal.pnr.hci.ChargeActivationModel
All Implemented Interfaces:
XMLMarshallable

public class ChargeActivationModel
extends java.lang.Object
implements XMLMarshallable

This Java class represents a charge activation in a subscription (customer master data) owned by a service provider; This data relates to the activation of charges in the subscribed offer.

Concepts and Terminology

A charge activation is an extensibility concept. The corresponding functional and business concept is the charge visible in a subscription.

Feature

A charge activation is contained in a SubscriptionModel and managed using operations related to subscriptions.

Concepts and Terminology

A charge activation with a dependent role does not have any status.

Accesses are directly managed using the CreateAccessOp, DeleteAccessOp and ModifyAccessOp operations.

Behavior of a charge activation status:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="chargeActivation">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="counter" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element ref="parameterSet" minOccurs="0" maxOccurs="1"/>
       <xs:element name="parameterSetChronology" minOccurs="0" maxOccurs="1">
         <xs:complexType>
           <xs:sequence>
             <xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element ref="translationInstanceSet" minOccurs="0" maxOccurs="1"/>
       <xs:element name="translationInstanceSetChronology" minOccurs="0" maxOccurs="1">
         <xs:complexType>
           <xs:sequence>
             <xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element ref="tierTableInstanceSet" minOccurs="0" maxOccurs="1"/>
       <xs:element name="tierTableInstanceSetChronology" minOccurs="0" maxOccurs="1">
         <xs:complexType>
           <xs:sequence>
             <xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element ref="access" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element ref="chargingMapping" minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
     <xs:attribute name="subCode" type="xs:string" use="required"/>
     <xs:attribute name="reference" type="xs:string"/>
     <xs:attribute name="description" type="xs:string"/>
     <xs:attribute name="currency" type="xs:string" use="optional"/>
     <xs:attribute name="effectiveDate" type="xs:dateTime"/>
     <xs:attribute name="expirationDate" type="xs:dateTime"/>
     <xs:attribute name="lastActivationDate" type="xs:dateTime"/>
     <xs:attribute name="cancellationDate" type="xs:dateTime"/>
     <xs:attribute name="parentCode" type="xs:string"/>
     <xs:attribute name="parentRef" type="xs:string"/>
     <xs:attribute name="status" type="CAStatusType"/>
   </xs:complexType>
 </xs:element>
<xs:simpleType name="CAStatusType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="neverActivated"/>
     <xs:enumeration value="active"/>
     <xs:enumeration value="suspended"/>
     <xs:enumeration value="cancelled"/>
     <xs:enumeration value="earlyCancelled"/>
     <xs:enumeration value="expired"/>
   </xs:restriction>

 </xs:simpleType>


Field Summary
static int ACTIVE
          Numeric value for the status of a charge activation which is active.
static java.lang.String ACTIVE_STR
          String value for the status of a charge activation which is active.
static int CANCELLED
          Numeric value for the status of a charge activation which is cancelled.
static java.lang.String CANCELLED_STR
          String value for the status of a charge activation which is cancelled.
static int EARLY_CANCELLED
          Numeric value for the status of a charge activation which has been early cancelled.
static java.lang.String EARLY_CANCELLED_STR
          String value for the status of a charge activation which has been early cancelled.
static int EXPIRED
          Numeric value for the status of a charge activation which is expired.
static java.lang.String EXPIRED_STR
          String value for the status of a charge activation which is expired.
static int NEVER_ACTIVATED
          Numeric value for the status of a charge activation which has never been activated.
static java.lang.String NEVER_ACTIVATED_STR
          String value for the status of a charge activation which has never been activated.
static int NO_STATUS
          Numeric value for the status of a charge activation with no status.
static int SUSPENDED
          Numeric value for the status of a charge activation which is suspended.
static java.lang.String SUSPENDED_STR
          String value for the status of a charge activation which is suspended.
 
Constructor Summary
ChargeActivationModel()
          Constructs an empty charge activation.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String name, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 java.util.Vector<AccessModel> getAccesses()
          Deprecated. Deprecated since former Transactive 3.3
 java.util.Date getCancellationDate()
          Returns the cancellation date of this charge activation.
 java.util.Vector<ChargingMappingModel> getChargingMappings()
          Returns ths list of the associated charging mappings.
 java.util.Vector<CounterModel> getCounters()
          Returns the list of associated counters.
 java.lang.String getCurrencyCode()
          Returns the currency code of this charge activation.
 java.lang.String getDescription()
          Returns the description of this charge activation.
 java.util.Date getEffectiveDate()
          Returns the effective date of this charge activation.
 java.util.Date getExpirationDate()
          Returns the expiration date of this charge activation.
 java.util.Date getLastActivationDate()
          Returns the last activation date of this charge activation.
 java.lang.String getOfferCode()
          Returns the main offer code of the parent charge.
 ParameterSetModel getParameterSet()
          Returns the parameter set model of this charge activation.
 ChronologyModel getParameterSetChronology()
          Returns the parameter set chronology of this charge activation.
 java.lang.String getParentCode()
          Returns the parent code of this charge activation.
 java.lang.String getParentRef()
          Returns the parent reference of this charge activation.
 java.lang.String getReference()
          Returns the reference of this charge activation.
 int getStatus()
          Returns the status of the charge activation.
static java.lang.String getStatusStringFromValue(int status)
           
static int getStatusValueFromString(java.lang.String statusString)
           
 java.lang.String getSubCode()
          Returns the subCode of this charge activation.
 TierTableInstanceSetModel getTierTableInstanceSet()
          Returns the tier table instance set of this charge activation.
 ChronologyModel getTierTableInstanceSetChronology()
          Returns the tier table instance set chronology of this charge activation.
 TranslationInstanceSetModel getTranslationInstanceSet()
          Returns the translation instance set of this charge activation.
 ChronologyModel getTranslationInstanceSetChronology()
          Returns the translation instance set chronology of this charge activation.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAccesses(java.util.Vector<AccessModel> accesses)
          Deprecated. Deprecated since former Transactive 3.3
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setCancellationDate(java.util.Date cancellationDate)
          Sets the cancellation date of this charge activation.
 void setChargingMappings(java.util.Vector<ChargingMappingModel> mappings)
          Sets the list of charging mappings of this charge activation.
 void setCurrencyCode(java.lang.String currencyCode)
          Sets the currency code of this charge activation.
 void setDescription(java.lang.String description)
          Sets the description of this charge activation.
 void setEffectiveDate(java.util.Date effectiveDate)
          Sets the effective date of this charge activation.
 void setExpirationDate(java.util.Date expirationDate)
          Sets the expiration date of this charge activation.
 void setLastActivationDate(java.util.Date lastActivationDate)
          Sets the last activation date of this charge activation.
 void setOfferCode(java.lang.String offerCode)
          Sets the main offer code of the parent charge.
 void setParameterSet(ParameterSetModel parameterSet)
          Sets the parameter set model of this charge activation.
 void setParentCode(java.lang.String parentCode)
          Sets the parent code of this charge activation.
 void setParentRef(java.lang.String parentRef)
          Sets the parent reference of this charge activation.
 void setReference(java.lang.String reference)
          Sets the reference of this charge activation.
 void setStatus(int status)
          Sets the status for the charge activation; Only the SAP CC system can update this information.
 void setSubCode(java.lang.String subCode)
          Sets the subCode for this charge activation.
 void setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
          Sets the tier table instance set of this charge activation.
 void setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
          Sets the translation instance set of this charge activation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_STATUS

public static final int NO_STATUS
Numeric value for the status of a charge activation with no status.

See Also:
Constant Field Values

NEVER_ACTIVATED

public static final int NEVER_ACTIVATED
Numeric value for the status of a charge activation which has never been activated.

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
Numeric value for the status of a charge activation which is active.

See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
Numeric value for the status of a charge activation which is suspended.

See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
Numeric value for the status of a charge activation which is cancelled.

See Also:
Constant Field Values

EARLY_CANCELLED

public static final int EARLY_CANCELLED
Numeric value for the status of a charge activation which has been early cancelled.

See Also:
Constant Field Values

EXPIRED

public static final int EXPIRED
Numeric value for the status of a charge activation which is expired.

See Also:
Constant Field Values

NEVER_ACTIVATED_STR

public static final java.lang.String NEVER_ACTIVATED_STR
String value for the status of a charge activation which has never been activated.

See Also:
Constant Field Values

ACTIVE_STR

public static final java.lang.String ACTIVE_STR
String value for the status of a charge activation which is active.

See Also:
Constant Field Values

SUSPENDED_STR

public static final java.lang.String SUSPENDED_STR
String value for the status of a charge activation which is suspended.

See Also:
Constant Field Values

CANCELLED_STR

public static final java.lang.String CANCELLED_STR
String value for the status of a charge activation which is cancelled.

See Also:
Constant Field Values

EARLY_CANCELLED_STR

public static final java.lang.String EARLY_CANCELLED_STR
String value for the status of a charge activation which has been early cancelled.

See Also:
Constant Field Values

EXPIRED_STR

public static final java.lang.String EXPIRED_STR
String value for the status of a charge activation which is expired.

See Also:
Constant Field Values
Constructor Detail

ChargeActivationModel

public ChargeActivationModel()
Constructs an empty charge activation.

Method Detail

getSubCode

public java.lang.String getSubCode()
Returns the subCode of this charge activation.

Returns:
This charge activation subCode.
See Also:
setSubCode(String)

setSubCode

public void setSubCode(java.lang.String subCode)
Sets the subCode for this charge activation.

Parameters:
subCode - The sub-code of the charge activation.
See Also:
getSubCode()

getReference

public java.lang.String getReference()
Returns the reference of this charge activation.

Returns:
This charge activation reference.
See Also:
setReference(String)

setReference

public void setReference(java.lang.String reference)
Sets the reference of this charge activation.

Parameters:
reference - The internal reference of this charge activation.
See Also:
getReference()

getDescription

public java.lang.String getDescription()
Returns the description of this charge activation.

Returns:
This charge activation description.
See Also:
setDescription(String)

setDescription

public void setDescription(java.lang.String description)
Sets the description of this charge activation.

Parameters:
description - The description of the charge activation.
See Also:
getDescription()

getCurrencyCode

public java.lang.String getCurrencyCode()
Returns the currency code of this charge activation.

Returns:
the currency code of this charge activation, or null if it does not define a currency code
See Also:
setCurrencyCode(String)

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
Sets the currency code of this charge activation.

Parameters:
currencyCode - the currency code of this charge activation, or null if it does not define a currency code
See Also:
getCurrencyCode()

getEffectiveDate

public java.util.Date getEffectiveDate()
Returns the effective date of this charge activation.

Returns:
This charge activation effective date.
See Also:
setEffectiveDate(Date)

setEffectiveDate

public void setEffectiveDate(java.util.Date effectiveDate)
Sets the effective date of this charge activation.

Parameters:
effectiveDate - The effective date of the charge activation.
See Also:
getEffectiveDate()

getExpirationDate

public java.util.Date getExpirationDate()
Returns the expiration date of this charge activation.

Returns:
This charge activation expiration date.
See Also:
setExpirationDate(Date)

setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of this charge activation. Only the server can update this information.

Parameters:
expirationDate - The expiration date of the charge activation.
See Also:
getExpirationDate()

getLastActivationDate

public java.util.Date getLastActivationDate()
Returns the last activation date of this charge activation.

Returns:
This charge activation last activation date.
See Also:
setLastActivationDate(Date)

setLastActivationDate

public void setLastActivationDate(java.util.Date lastActivationDate)
Sets the last activation date of this charge activation.

Parameters:
lastActivationDate - The last activation date of the charge activation.
See Also:
getLastActivationDate()

getCancellationDate

public java.util.Date getCancellationDate()
Returns the cancellation date of this charge activation. The cancellation date must be after the effective date

Returns:
This subscription cancellation date.
See Also:
setCancellationDate(Date)

setCancellationDate

public void setCancellationDate(java.util.Date cancellationDate)
Sets the cancellation date of this charge activation. The cancellation date must be after the effective date

Parameters:
cancellationDate - The cancellation date of the charge activation.
See Also:
getCancellationDate()

getCounters

public java.util.Vector<CounterModel> getCounters()
Returns the list of associated counters.

Returns:
a list of CounterModel.

getParentRef

public java.lang.String getParentRef()
Returns the parent reference of this charge activation.

Returns:
the parent reference of this charge activation.

setParentRef

public void setParentRef(java.lang.String parentRef)
Sets the parent reference of this charge activation.

Parameters:
parentRef - the parent reference of this charge activation.

getParentCode

public java.lang.String getParentCode()
Returns the parent code of this charge activation.

Returns:
the parent code of this charge activation.

setParentCode

public void setParentCode(java.lang.String parentCode)
Sets the parent code of this charge activation.

Parameters:
parentCode - the parent code of this charge activation.

getOfferCode

public java.lang.String getOfferCode()
Returns the main offer code of the parent charge.

Returns:
The main offer code of the parent charge.
See Also:
setOfferCode(String)

setOfferCode

public void setOfferCode(java.lang.String offerCode)
Sets the main offer code of the parent charge.

Parameters:
offerCode - The code of the offer of the parent charge.
See Also:
getOfferCode()

getParameterSet

public ParameterSetModel getParameterSet()
Returns the parameter set model of this charge activation.

Returns:
the parameter set model of this charge activation.

setParameterSet

public void setParameterSet(ParameterSetModel parameterSet)
Sets the parameter set model of this charge activation.

Parameters:
parameterSet - the parameter set model of this charge activation.

getTranslationInstanceSet

public TranslationInstanceSetModel getTranslationInstanceSet()
Returns the translation instance set of this charge activation.

Returns:
the translation instance set of this charge activation.

setTranslationInstanceSet

public void setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
Sets the translation instance set of this charge activation.

Parameters:
translationInstanceSet - the translation instance set of this charge activation.

getTierTableInstanceSet

public TierTableInstanceSetModel getTierTableInstanceSet()
Returns the tier table instance set of this charge activation.

Returns:
the tier table instance set of this charge activation.

setTierTableInstanceSet

public void setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
Sets the tier table instance set of this charge activation.

Parameters:
tierTableInstanceSet - the tier table instance set of this charge activation.

getParameterSetChronology

public ChronologyModel getParameterSetChronology()
Returns the parameter set chronology of this charge activation.

Returns:
all the charge activation parameter set in a vector of period.

getTranslationInstanceSetChronology

public ChronologyModel getTranslationInstanceSetChronology()
Returns the translation instance set chronology of this charge activation.

Returns:
all the charge activation translation instance set in a vector of period.

getTierTableInstanceSetChronology

public ChronologyModel getTierTableInstanceSetChronology()
Returns the tier table instance set chronology of this charge activation.

Returns:
all the charge activation tier table instance set in a vector of period.

getAccesses

@Deprecated
public java.util.Vector<AccessModel> getAccesses()
Deprecated. Deprecated since former Transactive 3.3

Returns the list of the associated accesses. This operation is avalaible only if pnr.compatibility.r32.access is true in the server config file.

Returns:
a list of AccessModel.

setAccesses

@Deprecated
public void setAccesses(java.util.Vector<AccessModel> accesses)
Deprecated. Deprecated since former Transactive 3.3

Sets the list of accesses of this charge activation. This operation is avalaible only if pnr.compatibility.r32.access is true in the server config file.

Parameters:
accesses - the list of AccessModels to be setted.

getChargingMappings

public java.util.Vector<ChargingMappingModel> getChargingMappings()
Returns ths list of the associated charging mappings.

Returns:
a list of ChargingMappingModel.

setChargingMappings

public void setChargingMappings(java.util.Vector<ChargingMappingModel> mappings)
Sets the list of charging mappings of this charge activation.

Parameters:
mappings - The list of ChargingMappingModel to be setted

getStatus

public int getStatus()
Returns the status of the charge activation.

The status may be:

Returns:
The status of the charge activation
See Also:
setStatus(int)

setStatus

public void setStatus(int status)
Sets the status for the charge activation; Only the SAP CC system can update this information.

Parameters:
status - The status of the charge activation
See Also:
getStatus()

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

addChild

public void addChild(java.lang.String name,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
name - The name of tag for the child
child - The child to be added

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

getStatusStringFromValue

public static java.lang.String getStatusStringFromValue(int status)

getStatusValueFromString

public static int getStatusValueFromString(java.lang.String statusString)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)